import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/view/index'
import Work from '@/view/workspace'
import View from '@/view/work/overview'
import Notice from '@/view/work/notice'
import Study from '@/view/work/study'
import Active from '@/view/work/active'
import Display from '@/view/work/display'
import Example from '@/view/work/example'
import Email from '@/view/work/email'
import Detail from '@/view/articledetail'
import userDetail from '@/view/userdetail'
import Manage from '@/view/manage'
import Managedetail from '@/view/managedetail'
import Login from '@/view/chuangke/login'
import Space from '@/view/chuangke/space'
import Cmarket from '@/view/chuangke/cmarket'
import Community from '@/view/chuangke/community'
import Share from '@/view/chuangke/share'
import VrDisplay from '@/view/display'
import Result from '@/view/resultdetail'
import Fabu from '@/view/chuangke/fabu'
import Ckdetail from '@/view/chuangke/ckdetail'
import PrevLogin from '@/view/prevlogin'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'index',
        component: Index,
        meta: {
            loginKeep: true,
            title: '首页',
            keyword: '党建首页',
            description: '党建首页'

        }
    }, {
        path: '/work',
        name: 'Work',
        component: Work,
        redirect: '/work/view',
        children: [{
            path: 'view',
            name: 'View',
            component: View,
            meta: {
                loginKeep: true,
                title: '工作概况',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'notice',
            name: 'Notice',
            component: Notice,
            meta: {
                loginKeep: true,
                title: '公告栏',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'study',
            name: 'Study',
            component: Study,
            meta: {
                loginKeep: true,
                title: '理论学习',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'active',
            name: 'Active',
            component: Active,
            meta: {
                loginKeep: true,
                title: '工作动态',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'display',
            name: 'Display',
            component: Display,
            meta: {
                loginKeep: true,
                title: '成果展示',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'example',
            name: 'Example',
            component: Example,
            meta: {
                loginKeep: true,
                title: '工作概况',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'email',
            name: 'Email',
            component: Email,
            meta: {
                loginKeep: true,
                title: '书记信箱',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }]
    }, {
        path: '/detail',
        name: 'Detail',
        component: Detail,
        meta: {
            loginKeep: true,
            title: '文章详情',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/userdetail',
        name: 'userDetail',
        component: userDetail,
        meta: {
            loginKeep: true,
            title: '详情',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/manage',
        name: 'Manage',
        component: Manage,
        meta: {
            loginKeep: true,
            title: '实绩管理',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/display',
        name: 'VrDisplay',
        component: VrDisplay,
        meta: {
            loginKeep: true,
            title: 'VR党建展厅',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/managedetail',
        name: 'Managedetail',
        component: Managedetail,
        meta: {
            loginKeep: true,
            title: '详情',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/result',
        name: 'Result',
        component: Result,
        meta: {
            loginKeep: true,
            title: '详情',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/fabu',
        name: 'Fabu',
        component: Fabu,
        meta: {
            loginKeep: true,
            title: '发布',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/login',
        name: 'Login',
        component: Login,
        meta: {
            loginKeep: true,
            title: '登录',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/prevlogin',
        name: 'PrevLogin',
        component: PrevLogin,
        meta: {
            loginKeep: true,
            title: '登录',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/ckdetail',
        name: 'Ckdetail',
        component: Ckdetail,
        meta: {
            loginKeep: true,
            title: '项目详情',
            keyword: '双带头工作室',
            description: '双带头工作室-工作概况'

        }
    }, {
        path: '/space',
        name: 'Space',
        component: Space,
        redirect: '/space/community',
        children: [{
            path: 'cmarket',
            name: 'Cmarket',
            component: Cmarket,
            meta: {
                loginKeep: true,
                title: '创客集市',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'community',
            name: 'Community',
            component: Community,
            meta: {
                loginKeep: true,
                title: '创客社区',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }, {
            path: 'share',
            name: 'Share',
            component: Share,
            meta: {
                loginKeep: true,
                title: '分享空间',
                keyword: '双带头工作室',
                description: '双带头工作室-工作概况'

            }
        }]
    }]
})